import os, glob
from . import settings
import app1

yes = False
path1 = glob.glob(os.path.join(settings.IMG_UPLOAD, '*.jpg'))
path2 = glob.glob(os.path.join(settings.IMG_UPLOAD, '*.png'))

# 删除所有文件和文件夹
for file in path1:
    print(file)
    os.remove(file)

for file in path2:
    print(file)
    os.remove(file)